const point = {
  x: 0,
  y: 0
}

interface Dog{
  name: string,
  age: number
}

function getName(obj: Dog){
  return obj.name
}

const dog = {name: 'scoop', age:4,gender:'F'}
getName(dog)